package com.gyx.lottery.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ActicityPrizeTiersEnum {
    FIRST_PRIZE(1, "一等奖"),

    SECOND_PRIZE(2, "二等奖"),

    THIRD_PRIZE(3, "三等奖");
    private Integer code;
    private String message;
    public static ActicityPrizeTiersEnum forName(String name){
        for(ActicityPrizeTiersEnum acticityPrizeTiersEnum:ActicityPrizeTiersEnum.values()){
            if(acticityPrizeTiersEnum.name().equals(name)){
                return acticityPrizeTiersEnum;
            }
        }
        return null;
    }
}
